package org.chnxi.study.serialize.jackson;

import lombok.Data;

@Data
public class ChineseBook implements Book {

    private String book;

    private int totalPages;

    public ChineseBook(){
        this.book = "Chinese Book";
        this.totalPages = 32;
    }

    @Override
    public String name() {
        return this.book;
    }
}
